package study.Day_4;

/**
 * @Classname: Main
 * @Description: 描述
 * @Date: 2021/9/18
 * @Author: huwei
 */
public class Main {
    public static void main(String[] args) {
        int[] nums1 = {1,2,6};
        int[] nums2 = {3,4,5};
        // 简单求法
        Day_four da = new Day_four();
        String centerNum = da.getCenterNum(nums1, nums2);
        System.out.println("中位数是:"+centerNum);
        // 二分法求(推荐)
        Day_four_1 da1 = new Day_four_1();
        double centerNum1 = da1.getCenterNum(nums1, nums2);
        System.out.println("二分法的中位数是:"+centerNum1);

    }
}
